home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / ned103.zip / CMDFILE.PAS next >
Pascal/Delphi Source File  |  1992-08-28  |  13KB  |  448 lines

  1. { FILE:  cmdfile.pas}
  2.  
  3.  
  4.  
  5. unit CmdFile;
  6.  
  7.  
  8.  
  9.  
  10. { ----------------------------------------------------------- }
  11. {                                                             }
  12. { This unit contains all the command options for the program  }
  13. { and all the status line hints for the program menu options. }
  14. {                                                             }
  15. { For the help commands, always ensure last item in a series  }
  16. { of numbers is labeled "hc????_Items" and it equals last     }
  17. { item in number series.                                      }
  18. {                                                             }
  19. { Don't put anything else in here except key command codes!   }
  20. {                                                             }
  21. { Note that in order for a command to be disabled, it MUST be }
  22. { in the range 100..255!                                      }
  23. {                                                             }
  24. {         Allowable Ranges   Reserved   Can Be Disabled       }
  25. {                                                             }
  26. {              0..99           Yes           Yes              }
  27. {            100..255          No            Yes              }
  28. {            256..999          Yes           No               }
  29. {           1000..65535        No            No               }
  30. {                                                             }
  31. { Al Andersen - 02/29/92.                                     }
  32. {                                                             }
  33. { ----------------------------------------------------------- }
  34.  
  35.  
  36. {$D-}
  37.  
  38.  
  39.  
  40. interface
  41.  
  42.  
  43.  
  44. CONST
  45.  
  46.  
  47.  
  48.   {------------------------------------- }
  49.   {                                      }
  50.   { Menu commands.  Space is provided    }
  51.   { if you want to add an "Extras" menu. }
  52.   { If you use the extra's menu option,  }
  53.   { put your commands here.              }
  54.   {                                      }
  55.   { cm??? range = 100 through 109        }
  56.   { hc??? range = 2000 through 2099      }
  57.   {                                      }
  58.   { ------------------------------------ }
  59.  
  60.  
  61.   cmAbout                =  100;
  62.  
  63.   hcMenus                = 2000;
  64.  
  65.   hcExtra_Menu           = 2001;
  66.   hcAbout                = 2002;
  67.   hcExtra_Menu_Items     = hcExtra_Menu;
  68.  
  69.  
  70.  
  71.   { ------------------------------- }
  72.   {                                 }
  73.   { FILE Menu options.              }
  74.   {                                 }
  75.   { The following commands may be   }
  76.   { found in the NEWEDIT unit:      }
  77.   {                                 }
  78.   { cmSave                          }
  79.   { cmSaveDone                      }
  80.   { cmSaveAs                        }
  81.   {                                 }
  82.   { The following commands may be   }
  83.   { found in the VIEWS unit:        }
  84.   {                                 }
  85.   { cmQuit                          }
  86.   {                                 }
  87.   { cm??? range =  110 through  119 }
  88.   { hc??? range = 2100 through 2199 }
  89.   {                                 }
  90.   { ------------------------------- }
  91.  
  92.  
  93.   cmOpen                 =  110;
  94.   cmNew                  =  111;
  95.   cmChangeDir            =  112;
  96.   cmShellToDos           =  113;
  97.  
  98.   hcFile_Menu            = 2100;
  99.   hcOpen                 = 2101;
  100.   hcNew                  = 2102;
  101.   hcSave                 = 2103;
  102.   hcSaveDone             = 2104;
  103.   hcSaveAs               = 2105;
  104.   hcChangeDir            = 2106;
  105.   hcShellToDos           = 2107;
  106.   hcExit                 = 2108;
  107.   hcFile_Menu_Items      = hcExit;
  108.  
  109.  
  110.  
  111.   { ------------------------------- }
  112.   {                                 }
  113.   { EDIT Menu options.              }
  114.   {                                 }
  115.   { The following commands may be   }
  116.   { found in the VIEWS unit:        }
  117.   {                                 }
  118.   { cmUndo                          }
  119.   { cmCopy                          }
  120.   { cmCut                           }
  121.   { cmPaste                         }
  122.   { cmClear                         }
  123.   {                                 }
  124.   { cm??? range =  120 through  129 }
  125.   { hc??? range = 2200 through 2299 }
  126.   {                                 }
  127.   { ------------------------------- }
  128.  
  129.  
  130.   cmClipboard            =  120;
  131.   cmSpellCheck           =  121;
  132.  
  133.   hcEdit_Menu            = 2200;
  134.   hcUndo                 = 2201;
  135.   hcCopy                 = 2202;
  136.   hcCut                  = 2203;
  137.   hcPaste                = 2204;
  138.   hcClipboard            = 2205;
  139.   hcClear                = 2206;
  140.   hcSpellCheck           = 2207;
  141.   hcEdit_Menu_Items      = hcSpellCheck;
  142.  
  143.  
  144.  
  145.   { ------------------------------- }
  146.   {                                 }
  147.   { SEARCH Menu options.            }
  148.   {                                 }
  149.   { The following commands may be   }
  150.   { found in the NEWEDIT unit:      }
  151.   {                                 }
  152.   { cmFind                          }
  153.   { cmReplace                       }
  154.   { cmSearchAgain                   }
  155.   {                                 }
  156.   { cm??? range =  130 through  139 }
  157.   { hc??? range = 2300 through 2399 }
  158.   {                                 }
  159.   { ------------------------------- }
  160.  
  161.  
  162.   hcSearch_Menu          = 2300;
  163.   hcFind                 = 2301;
  164.   hcReplace              = 2302;
  165.   hcAgain                = 2303;
  166.   hcSearch_Menu_Items    = hcAgain;
  167.  
  168.  
  169.  
  170.   { ------------------------------- }
  171.   {                                 }
  172.   { WINDOWS Menu options.           }
  173.   {                                 }
  174.   { The following commands may be   }
  175.   { found in the VIEWS unit:        }
  176.   {                                 }
  177.   { cmResize                        }
  178.   { cmZoom                          }
  179.   { cmNext                          }
  180.   { cmPrev                          }
  181.   { cmClose                         }
  182.   { cmTile                          }
  183.   { cmCascade                       }
  184.   {                                 }
  185.   { cm??? range =  140 through  149 }
  186.   { hc??? range = 2400 through 2499 }
  187.   {                                 }
  188.   { ------------------------------- }
  189.  
  190.  
  191.   hcWindows_Menu         = 2400;
  192.   hcResize               = 2401;
  193.   hcZoom                 = 2402;
  194.   hcPrev                 = 2403;
  195.   hcNext                 = 2404;
  196.   hcClose                = 2405;
  197.   hcTile                 = 2406;
  198.   hcCascade              = 2407;
  199.   hcWindows_Menu_Items   = hcCascade;
  200.  
  201.  
  202.  
  203.   { ------------------------------- }
  204.   {                                 }
  205.   { DESKTOP Menu options.           }
  206.   {                                 }
  207.   { cm??? range =  150 through  159 }
  208.   { hc??? range = 2500 through 2599 }
  209.   {                                 }
  210.   { ------------------------------- }
  211.  
  212.  
  213.   cmLoadDesktop          =  150;
  214.   cmSaveDesktop          =  151;
  215.   cmToggleVideo          =  152;
  216.  
  217.   hcDesktop_Menu         = 2500;
  218.   hcLoadDesktop          = 2501;
  219.   hcSaveDesktop          = 2502;
  220.   hcToggleVideo          = 2503;
  221.   hcDesktop_Menu_Items   = hcToggleVideo;
  222.  
  223.  
  224.  
  225.   { -------------------------------------------------------------------- }
  226.   {                                                                      }
  227.   { Miscellaneous commands not directly related to menu options go here. }
  228.   {                                                                      }
  229.   { -------------------------------------------------------------------- }
  230.  
  231.  
  232.   hcMisc_Commands        = 2600;
  233.   hckbShift              = 2601;
  234.   hckbCtrl               = 2602;
  235.   hckbAlt                = 2603;
  236.   hcMisc_Items           = hckbAlt;
  237.  
  238.  
  239.  
  240.   { ------------------------------- }
  241.   {                                 }
  242.   { Editor help commands.           }
  243.   {                                 }
  244.   { Editor commands that are not    }
  245.   { available in a menu go here.    }
  246.   {                                 }
  247.   { hc??? range = 2700 through 2799 }
  248.   {                                 }
  249.   { ------------------------------- }
  250.  
  251.  
  252.   { Editor Sub Menu Commands }
  253.  
  254.   hcEditor_Commands      = 2700;
  255.   hcCursor               = 2701;
  256.   hcDeleting             = 2702;
  257.